﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table style="width:100%;">
            <tr>
                <td>
                    Име:</td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1"  runat="server" Display="Dynamic" ErrorMessage="Внесете го вашето Име" SetFocusOnError="true" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Презиме:</td>
                <td>
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ErrorMessage="Внесете го вашето презиме" SetFocusOnError="true" ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Корисничко Име:</td>
                <td>
                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic" ErrorMessage="Внесете го корисничкото име" SetFocusOnError="true" ControlToValidate="TextBox3"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Лозинка</td>
                <td>
                    <asp:TextBox ID="TextBox4" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic" ErrorMessage="Внесете лозинка" ControlToValidate="TextBox4" SetFocusOnError="true" ></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" display="Dynamic" ControlToValidate="TextBox4" ErrorMessage="Пасвордот мора да содржи барем еден од знаците @#$%^&*/." ValidationExpression=".*[@#$%^&*/].*" />
                </td>
            </tr>
            <tr>
                <td>
                    Потврди лозинка:</td>
                <td>
                    <asp:TextBox ID="TextBox5" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Display="Dynamic" ErrorMessage="Потврди ја лозинката" ControlToValidate="TextBox5" SetFocusOnError="true"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" display="Dynamic" ControlToValidate="TextBox5" ErrorMessage="Пасвордот мора да содржи барем еден од знаците @#$%^&*/." ValidationExpression=".*[@#$%^&*/].*" />
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TextBox4" ControlToCompare="TextBox5"  ErrorMessage="Лозинките не се совпаѓаат" />
                </td>
            </tr>
            <tr>
                <td>
                    Слика:</td>
                <td>
                   <asp:FileUpload ID="FileUpload1" runat="server" /></td>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator" runat="server" Display="Dynamic" ErrorMessage="Одберете слика" ControlToValidate="FileUpload1" SetFocusOnError="true"></asp:RequiredFieldValidator>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="Регистрирај се" 
                        onclick="Button1_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Label ID="Label1" runat="server"  />
                </td>
            </tr>
        </table>
        
    
    </div>
    </form>
</body>
</html>
